import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

createApp(App).mount('#app')


const num:number = 13

console.log(num)

// 字面量类型+联合类型，实现枚举的效果
type forWordtype = '东'|'男'|'西'|'北'
let forWord:forWordtype = '北'
console.log(forWord)

// any类型(任意类型)
// any类型不会做类型校验
let person:any
person = 2

person = {
    name:'梨花',
    age:18
}

console.log(person.name)

// 第三方库的提示文件
import axios from "axios";

axios.create({
    baseURL:'',
    timeout:5000
})

// 自己编写的第三方库
import { food } from "./types/data";

const f:food = {
    name:'西红柿炒蛋',
    color:'红色'
}

console.log(f)

import { add } from "./utils/index";

const res = add(3,5)

console.log(res)